package com.hongyi.controller;

import com.hongyi.common.Result;
import com.hongyi.pojo.Dep;
import com.hongyi.pojo.PageBean;
import com.hongyi.pojo.Person;
import com.hongyi.service.DepService;
import com.hongyi.service.OrderService;
import com.hongyi.vo.OrderVo;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @author hongyi
 * @date 2023/11/22 21:16
 */
@RestController
@RequestMapping("/order")
@MapperScan("com.hongyi.mapper")
public class OrderController {
    @Autowired
    private OrderService orderService;
       @GetMapping("/orderList")
    public Result<List<OrderVo>> m5(){
           List<OrderVo> list = orderService.findAll();
           return Result.success(list);
    }

}
// http://127.0.0.1:9090/order/orderList
